package shiqi.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import shiqi.dao.OrderDao;
import shiqi.pojo.Order;

@Repository
public class OrderDaoImpl implements OrderDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;
    @Override
    public void updateOrder(Integer id) {
        String sql = "update  `order` set `note` = 'note' where `id` = ? ;";
        jdbcTemplate.update(sql,id);

    }
}
